ccR.Add_Rotation(
	2,
	"Ankhy_BASIC_Fire_Mage",
	"BASIC Rotation.\n\n Made by Ankhy."
)
function Ankhy_BASIC_Fire_Mage()
		if IsShiftKeyDown() then 
			if ccR.Spell.IsReady("Rune of Power") then SpellStopCasting() ccR.Cast.Spell("Rune of Power") end
				CameraOrSelectOrMoveStart()
				CameraOrSelectOrMoveStop()
			return
		end
	if (ccR.Player.IsInCombat() or (ccR.Player.IsInGroup() and ccR.Target.IsInCombat())) and ccR.Target.Is.Attackable() then
		-- Moving
		if ccR.Player.IsMoving() then
			if ccR.Player.HasBuff("Pyroblast!") then ccR.Cast.Attack("Pyroblast") end
			if ccR.Spell.CanAttack("Scorch") then ccR.Cast.Attack("Scorch") end
		end
		if ccR.Target.Is.Attackable()
		and ccR.Spell.Is.Ready(PRISMATIC_CRYSTAL)
		and not ccR.Target.IsMoving()
		and ccR.Player.HasBuff("Pyroblast!") 
		and ccR.Target.Distance() <= 40
		then
			ccR.Cast.AoE(PRISMATIC_CRYSTAL, "target", 40, 12)
		end
		if ccR.Player.Crystal.Exists() then ccR.Player.Crystal.Target() end
		if ccR.Spell.IsReady("Blast Wave") then ccR.Cast.Attack("Blast Wave") end
		if ccR.Spell.IsReady("Meteor") then ccR.Cast.AoE("Meteor", "target", 40, 8) end
		if (ccR.Target.IsBoss() and not ccR.Player.HasBuff("Pyroblast!") and not ccR.Player.HasBuff("Heating Up") or not ccR.Target.IsBoss()) and ccR.Target.Count(8) > 1 and ccR.Target.HasMyDebuff("Living Bomb") and ccR.Spell.IsReady("Inferno Blast") then ccR.Cast.Attack("Inferno Blast") end
		if ccR.Spell.IsReady("Dragon's Breath") and ccR.Target.Distance() <= 8 and ccR.Player.Count(8) >= 2 then ccR.Cast.AF.Spell("Dragon's Breath") end
		if (ccR.Target.IsBoss() and not ccR.Player.HasBuff("Pyroblast!") and not ccR.Player.HasBuff("Heating Up") or not ccR.Target.IsBoss()) and ccR.Player.HasTalent("Living Bomb") and ccR.Spell.IsReady("Living Bomb") and not ccR.Target.Has.MyDebuff("Living Bomb") then ccR.Cast.Spell("Living Bomb") end
		if ccR.Player.HasBuff("Pyroblast!") and (ccR.Spell.CDDuration("Combustion") > 1 or not ccR.Target.IsBoss()) then ccR.Cast.Attack("Pyroblast") end
		if ccR.Player.HasBuff("Pyroblast!") and ccR.Player.BuffDuration("Pyroblast!") <= 0.5 then ccR.Cast.Attack("Pyroblast") end
		if ccR.Player.HasBuff("Heating Up") and ccR.Spell.IsReady("Inferno Blast") or (ccR.Player.HasBuff("Pyroblast!") and not ccR.Player.HasBuff("Heating Up")) and ccR.Spell.IsReady("Inferno Blast") then ccR.Cast.Attack("Inferno Blast") end
		if ccR.Player.HasBuff("Pyroblast!") then ccR.Cast.Attack("Pyroblast") end
		if (ccR.Target.IsBoss() and not ccR.Player.HasBuff("Pyroblast!") and not ccR.Player.HasBuff("Heating Up") or not ccR.Target.IsBoss()) and ccR.Spell.IsReady("Blast Wave") then ccR.Cast.Attack("Blast Wave") end
		if ccR.Spell.CanAttack("Fireball") and not ccR.Player.HasBuff("Presence of Mind") then ccR.Cast.Attack("Fireball") end
		if ccR.Spell.CanAttack("Scorch") then ccR.Cast.Attack("Scorch") end
	end			
end		

